package com.example.demo;

import java.time.Duration;

public interface DiscountSerivce {

    /**
     * 商品折扣计算
     *
     * @param sum
     * @param disount
     * @return
     */
    public Double discount(int sum, double disount);

    /**
     * 满减折扣计算
     * @param sum
     * @param floal
     * @return
     */
    public Double cost(Double sum, int floal);
}
